wayland: avoid jitter in keyboard repeat
authorChristian Hergert <chergert@redhat.com>
Tue, 26 Apr 2016 01:10:09 +0000 (18:10 -0700)
committerChristian Hergert <chergert@redhat.com>
Tue, 26 Apr 2016 01:15:24 +0000 (18:15 -0700)
commit724d3be794bc6faa79b9a17681fe77c67d280a99
tree0e5f073174d486d972f9c0756e181b5a9fc40fd0
parent1951642c0e4566515f704a850224beaa1792a5e0
wayland: avoid jitter in keyboard repeat

When synthesizing keyboard repeat, we can potentially drift further from
the mark depending on the timing of the frame callback and how long it
took to deliver the event.

This patch attempts to reduce this by tracking from a stable epoch the
time of our next keyboard repeat.

https://bugzilla.gnome.org/show_bug.cgi?id=765567
gdk/wayland/gdkdevice-wayland.c